using System.Resources;

namespace Kassandra.Core.Infrastructure.ResourceManagement
{
    public class MessageManagement
    {
        private static ResourceManager _resourceManager;
        private static bool _setup = false;
        

        public static string For(string key)
        {
            Setup();
            return _resourceManager.GetString(key);
        }

        public static void Setup()
        {
            if (!_setup)
            {
                _resourceManager = new ResourceManager("Kassandra.Core.Resources.Messages", typeof(MessageManagement).Assembly);
                _setup = true;
            }
        }

    }
}